Skip to content

Conversation

@hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Oct 17, 2025

FF135 added support for the Idempotency-Key header in https://bugzilla.mozilla.org/show_bug.cgi?id=1830022 behind the preference network.http.idempotencyKey.enabled.

There was an attempt to ship in 145 in https://bugzilla.mozilla.org/show_bug.cgi?id=1991641 but this has been withdrawn

This has a spec https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/ but adding it results in an error.

  1. Can you remind me how to get an exception?

The key is sent in requests to indicate that a POST/PATCH is a particular unique command. If the server gets the same request with the same key it ignores it.
As specified the server defines the requirements for the key, which would be expected therefore to be unknown to the browser, and set by Javascript.
As such you wouldn't expect a browser integration, and hence no BCD entry.

However FF automatically attaches a key if one is not attached. This is non standard. But it does mean that the browser does something, so there is an integration and compatibility story.

Related docs work can be tracked in mdn/content#41497

@github-actions github-actions bot added data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:m [PR only] 25-100 LoC changed labels Oct 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@hamishwillee hamishwillee marked this pull request as ready for review October 24, 2025 04:56
@caugner
Copy link
Contributor

caugner commented Oct 24, 2025

This has a spec datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header but adding it results in an error.

1. Can you remind me how to get an exception?

You'll need to suggest this spec in the browser-specs repo.

@caugner caugner changed the title FF145 Idempotency-Key HTTP header Firefox 135 adds Idempotency-Key HTTP header behind pref Oct 24, 2025
@hamishwillee
Copy link
Contributor Author

Thanks @caugner - I've accepted this as non-standard and will add the spec back if w3c/browser-specs#2199 gets approved.

@hamishwillee
Copy link
Contributor Author

@caugner Don't know when BCD "finds" spec updates, but the spec for this was accepted in w3c/browser-specs#2199 - and I have added the spec-url and set this back to standard. Ready for your review.

@caugner
Copy link
Contributor

caugner commented Oct 28, 2025

@caugner Don't know when BCD "finds" spec updates, but the spec for this was accepted in w3c/browser-specs#2199 - and I have added the spec-url and set this back to standard. Ready for your review.

Should be fine with #28306 now.

caugner

This comment was marked as outdated.

@caugner caugner merged commit 9285325 into mdn:main Oct 28, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Oct 28, 2025
@hamishwillee
Copy link
Contributor Author

Thanks very much @caugner

@hamishwillee hamishwillee deleted the f145idempotentcy branch October 28, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants